/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By 深圳中科鑫智科技有限公司
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.business.service.bsamecity.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.shop.cereshop.business.service.bsamecity.BsamecityDeliveryTrackingService;
import com.shop.cereshop.commons.domain.bsamecity.BsamecityDeliveryTracking;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.shop.cereshop.business.dao.bsamecity.BsamecityDeliveryTrackingDAO;
import java.util.List;

/**
 * <p>
 * 业务实现类
 * 同城快递配送状态跟踪表
 * </p>
 *
 * @author
 * @date 2025-08-12
 */
@Slf4j
@Service
public class BsamecityDeliveryTrackingServiceImpl extends ServiceImpl<BsamecityDeliveryTrackingDAO, BsamecityDeliveryTracking> implements BsamecityDeliveryTrackingService {

    @Override
    public List<BsamecityDeliveryTracking> list(String orderId) {
        QueryWrapper<BsamecityDeliveryTracking> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("local_order_id", orderId);
        queryWrapper.orderByDesc("update_time");
        return list(queryWrapper);
    }
}
